package cn.wh.mapper;

import cn.wh.pojo.FriendsRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface FriendsRequestMapper {
    int deleteByPrimaryKey(String id);

    int insert(FriendsRequest record);

    int insertSelective(FriendsRequest record);

    FriendsRequest selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(FriendsRequest record);

    int updateByPrimaryKey(FriendsRequest record);

    FriendsRequest isSendFriendRequest(String sendUserId, String acceptUserId);

    int queryRequestMsgCount(@Param("acceptUserId") String acceptUserId);

    List<FriendsRequest> queryRequestMsgList(@Param("acceptUserId") String acceptUserId);

    void deleteRequestMsg(FriendsRequest friendsRequest);

}